package com.echat.ebluetooth.constant;

public class Constants {

    public static final String SEARCH_RESULT = "search_result";

    // sharedPreferences key
    public static final String KEY_HOST = "key_host";
    public static final String KEY_PORT = "key_port";
    public static final String KEY_ACCOUNT = "key_account";
    public static final String KEY_SCREEN = "key_screen";
    public static final String KEY_SAVE = "key_save";

    // sharedPreferences default value
    public static final String DEFAULT_SERVER_HOST = "120.92.108.27";
    public static final int DEFAULT_SERVER_PORT = 9001;
    public static final String DEFAULT_SCREEN = "48:46";


    // broadcast action
    public static final String ACTION_REFRESH_UI = "com.echat.ebluetooth.refreshui";

    public static class PROTOCOL_CONSTANT {

        public static final int TYPE = 0x55AA; // 包头标识 (2byte)
        public static final int END_BYTE = 0xFEEF; //结束位 (2byte)
        public static final byte PROTOCOL_VER = 0x03; // 协议版本号 (1byte)
        public static final int RESERVE = 0xFFFF; // 预留 (2byte)
        public static final byte PACKAGE_HEAD = 0x55; //业务数据包头

    }

}
